<?php 
$india='91';$malaysia='60';$China='86';$japan='81';$southAfrica='27';
$uk='44';$singapore='65';$america='1';
$Afghanistan='93';$Albania='355';$NetherlandsAntilles='599';$Algeria='213';
$AmericanSamoa='1684';$Andorra='376';$Angola='244';$Anguilla='1264';$Antarctica='672';
$AntiguaBarbuda='1268';$Argentina='54';$Armenia='374';$Aruba='297';$Australia='61';
$Austria='43';$Azerbaijan='994';$Bahamas='1242';$Bahrain='973';$Bangladesh='880';
$Barbados='1246';$Belarusc='375';$Belgium='32';$Belize='501';$Benin='229';$Bermuda='1441';
$Bhutan='975';$Bolivia='591';$BosniaHerzegovina='387';$Botswana='267';$Brazil='55';
$BruneiDarussalam='673';$Bulgaria='359';$BurkinaFaso='226';$Burundi='257';$Cambodia='855';
$Cameroon='237';$Canada='1';$CapeVerde='238';$CaymanIslands='1345';$CentralAfricanRepublic='236';
$Chad='235';$Chile='56';$Colombia='57';$Comoros='269';$Congo='242';$CongotheDemocraticRepublic='243';
$CookIslands='682';$CostaRica='506';$CôtedIvoire='225';$Croatia='385';$Cuba='53';
$Cyprus='357';$CzechRepublic='420';$Denmark='45';$Djibouti='253';$Dominica ='1767';
$DominicanRepublic ='1809';$Ecuador='593';$Egypt='20';$ElSalvador ='503';
$EquatorialGuinea='240';$Eritrea ='291';$Estonia='372';$Ethiopia='251';
$FalklandIslandsMalvinas='500';$FaroeIslands='298';$Fiji='679';$Finland='358';$France ='33';
$FrenchGuiana='594';$FrenchPolynesia='689';$Gabon ='241';$Gambia='220';$Georgia ='995';
$Germany='49';$Ghana='233';$Gibraltar ='350';$Greece='30';$Greenland='299';$Grenada='1473';
$Guadeloupe='590';$Guam ='1671';$Guatemala ='502';$Guinea='224';$GuineaBissau='245';
$Guyana='592';$Haiti='509';$HolySeeVaticanCityState='39';$Honduras='504';$HongKong ='852';
$Hungary='36';$Iceland='354';$Indonesia='62';$iNum='883';$IranIslamicRepublicof ='98';
$Iraq ='964';$Ireland='353';$Israel ='972';$Italy='39';$Jamaica='1876';$Jordan='962';
$Kazakhstan='7';$Kenya ='254';$Kiribati='686';$KoreaDemocraticPeoplesRepublicof ='850';
$KoreaRepublicof='82';$Kuwait='965';$Kyrgyzstan='996';$LaoPeoplesDemocraticRepublic='856';
$Lebanon='961';$Lesotho='266';$Liberia='231';$LibyanArabJamahiriya='218';$Liechtenstein='423';
$Lithuania='370';$Luxembourg='352';$Macao='853';$MacedoniaTheFormerYugoslavRepublicOf='389';
$Madagascar='261';$Malawi='265';$Maldives='960';$Mali='223';$Malta='356';$MarshallIslands='692';
$Martinique='596';$Mauritania='222';$Mauritius='230';$Mayotte='262';$Mexico='52';$MicronesiaFederatedStatesof='691';
$MoldovaRepublicof='373';$Monaco='377';$Mongolia='976';$Montenegro='382';$Montserrat='1664';
$Morocco='212';$Mozambique='258';$Myanmar='95';$Namibia='264';$Nauru='674';$Nepal='977';
$Netherlands='31';$NewCaledonia='687';$NewZealand='64';$Nicaragua='505';$Niger='227';
$Nigeria='234';$Niue='683';$NorthernMarianaIslands='1670';$Norway='47';$Oman='968';
$Pakistan='92';$Palau='680';$PalestiniancerritoryOccupied='970';$Panama='507';$PapuaGuinea='675';
$Paraguay='595';$Peru='51';$Philippines='63';$Poland='48';$Portugal='351';$PuertoRico='1';
$Qatar='974';$Reunion='262';$Romania='40';$RussianFederation='7';$Rwanda='250';
$SaintHelena='290';$SaintLucia='1758';$SaintPierreMiquelon='508';$SaintVincenttheGrenadines='1784';
$Samoa='685';$SanMarino='378';$SaoTomePrincipe='239';$SaudiArabia='966';$Senegal='221';
$Serbia='381';$Seychelles='248';$SierraLeone='232';$Slovakia='421';$Slovenia='386';
$SolomonIslands='677';$Somalia='252';$SouthSudan='211';$Spain='34';$SriLanka='94';
$Sudan='249';$Suriname='597';$Swaziland='268';$Sweden='46';$Switzerland='41';$SyrianArabRepublic='963';
$Taiwan='886';$Tajikistan='992';$TanzaniaUnitedRepublicof='255';$Thailand='66';
$TimorLeste='670';$Togo='228';$Tokelau='690';$Tonga='676';$TrinidadTobago='1868';
$Tunisia='216';$Turkey='90';$Turkmenistan='993';$TurksCaicosIslands='1649';$Tuvalu='688';
$Uganda='256';$Ukraine='380';$UnitedArabEmirates='971';$UnitedStates='1';$Uruguay='598';
$Uzbekistan='998';$Vanuatu='678';$Venezuela='58';$Vietnam='84';$VirginIslandsBritish='1284';
$VirginIslandsUS='1340';$WallisFutuna='681';$Yemen='967';$Zambia='260';$Zimbabwe='263';


$indiaC='';$malaysiaC='';$ChinaC='';$japanC='';$americaC='';$southAfricaC='';$ukC='';$singaporeC='';
$AfghanistanC='';$AlbaniaC='';$NetherlandsAntillesC='';$AlgeriaC='';
$AmericanSamoaC='';$AndorraC='';$AngolaC='';$AnguillaC='';$AntarcticaC='';
$AntiguaBarbudaC='';$ArgentinaC='';$ArmeniaC='';$ArubaC='';$AustraliaC='';
$AustriaC='';$AzerbaijanC='';$BahamasC='';$BahrainC='';$BangladeshC='';
$BarbadoscC='';$BelaruscC='';$BelgiumC='';$BelizeC='';$BeninC='';$BermudaC='';
$BhutanC='';$BoliviaC='';$BosniaHerzegovinaC='';$BotswanaC='';$BrazilC='';
$BruneiDarussalamC='';$BulgariaC='';$BurkinaFasoC='';$BurundiC='';$CambodiaC='';
$CameroonC='';$CanadaC='';$CapeVerdeC='';$CaymanIslandsC='';$CentralAfricanRepublicC='';
$ChadC='';$ChileC='';$ColombiaC='';$ComorosC='';$CongoC='';$CongotheDemocraticRepublicC='';
$CookIslandsC='';$CostaRicaC='';$CôtedIvoireC='';$CroatiaC='';$CubaC='';
$CyprusC='';$CzechRepublicC='';$DenmarkC='';$DjiboutiC='';$DominicaC ='';
$DominicanRepublicC ='';$EcuadorC='';$EgyptC='';	$ElSalvadorC ='';
$EquatorialGuineaC='';$EritreaC ='';$EstoniaC='';$EthiopiaC='';
$FalklandIslandsMalvinasC='';$FaroeIslandsC='';$FijiC='';$FinlandC='';$FranceC ='';
$FrenchGuianaC='';$FrenchPolynesiaC='';$GabonC='';$GambiaC='';$GeorgiaC ='';
$GermanyC='';$GhanaC='';$GibraltarC ='';$GreeceC='';$GreenlandC='';$GrenadaC='';
$GuadeloupeC='';$GuamC ='';$GuatemalaC ='';$GuineaC='';$GuineaBissauC='';
$GuyanaC='';$HaitiC='';$HolySeeVaticanCityStateC='';$HondurasC='';$HongKongC ='';
$HungaryC='';$IcelandC='';$IndonesiaC='';$iNumC='';$IranIslamicRepublicofC ='';
$IraqC ='';$IrelandC='';$IsraelC ='';$ItalyC='';$JamaicaC='';$JordanC='';
$KazakhstanC='';$KenyaC ='';$KiribatiC='';$KoreaDemocraticPeoplesRepublicofC ='';
$KoreaRepublicofC='';$KuwaitC='';$KyrgyzstanC='';$LaoPeoplesDemocraticRepublicC='';
$LebanonC='';$LesothoC='';$LiberiaC='';$LibyanArabJamahiriyaC='';$LiechtensteinC='';
$LithuaniaC='';$LuxembourgC='';$MacaoC='';$MacedoniaTheFormerYugoslavRepublicOfC='';
$MadagascarC='';$MalawiC='';$MaldivesC='';$MaliC='';$MaltaC='';$MarshallIslandsC='';
$MartiniqueC='';$MauritaniaC='';$MauritiusC='';$MayotteC='';$MexicoC='';$MicronesiaFederatedStatesofC='';
$MoldovaRepublicofC='';$MonacoC='';$MongoliaC='';$MontenegroC='';$MontserratC='';
$MoroccoC='';$MozambiqueC='';$MyanmarC='';$NamibiaC='';$NauruC='';$NepalC='';
$NetherlandsC='';$NewCaledoniaC='';$NewZealandC='';$NicaraguaC='';$NigerC='';
$NigeriaC='';$NiueC='';$NorthernMarianaIslandsC='';$NorwayC='';$OmanC='';
$PakistanC='';$PalauC='';$PalestinianTerritoryOccupiedC='';$PanamaC='';$PapuaGuineaC='';
$ParaguayC='';$PeruC='';$PhilippinesC='';$PolandC='';$PortugalC='';$PuertoRicoC='';
$QatarC='';$RomaniaC='';$RussianFederationC='';$RwandaC='';
$SaintHelenaC='';$SaintLuciaC='';$SaintPierreMiquelonC='';$SaintVincenttheGrenadinesC='';
$SamoaC='';$SanMarinoC='';$SaoTomePrincipeC='';$SaudiArabiaC='';$SenegalC='';
$SerbiaC='';$SeychellesC='';$SierraLeoneC='';$SlovakiaC='';$SloveniaC='';$SaoTomePrinTipeC='';
$SolomonIslandsC='';$SomaliaC='';$SouthSudanC='';$SpainC='';$SriLankaC='';
$SudanC='';$SurinameC='';$SwazilandC='';$SwedenC='';$SwitzerlandC='';$SyrianArabRepublicC='';
$TaiwanC='';$TajikistanC='';$TanzaniaUnitedRepublicofC='';$ThailandC='';

$TimorLesteC='';$TogoC='';$TokelauC='';$TongaC='';$TrinidadTobagoC='';$PalestiniancerritoryOccupiedC='';

$TunisiaC='';$TurkeyC='';$TurkmenistanC='';$TurksCaicosIslandsC='';$TuvaluC='';
$UgandaC='';$UkraineC='';$UnitedArabEmiratesC='';$UnitedStatesC='';$UruguayC='';
$UzbekistanC='';$VanuatuC='';$VenezuelaC='';$VietnamC='';$VirginIslandsBritishC='';
$VirginIslandsUSC='';$WallisFutunaC='';$YemenC='';$ZambiaC='';$ZimbabweC='';

$indiaT='';$malaysiaT='';$ChinaT='';$japanT='';$southAfricaT='';$ukT='';$singaporeT='';
$AfghanistanT='';$AlbaniaT='';$NetherlandsAntillesT='';$AlgeriaT='';
$AmericanSamoaT='';$AndorraT='';$AngolaT='';$AnguillaT='';$AntarTticaT='';
$AntiguaBarbudaT='';$ArgentinaT='';$ArmeniaT='';$ArubaT='';$AustraliaT='';
$AustriaT='';$AzerbaijanT='';$BahamasT='';$BahrainT='';$BangladeshT='';
$BarbadoscT='';$BelaruscT='';$BelgiumT='';$BelizeT='';$BeninT='';$BermudaT='';
$BhutanT='';$BoliviaT='';$BosniaHerzegovinaT='';$BotswanaT='';$BrazilT='';
$BruneiDarussalamT='';$BulgariaT='';$BurkinaFasoT='';$BurundiT='';$CambodiaT='';

$CameroonT='';$CanadaT='';$CapeVerdeT='';$CaymanIslandsT='';$CentralAfricanRepublicT='';
$ChadT='';$ChileT='';$ColombiaT='';$ComorosT='';$CongoT='';$CongotheDemocraticRepublicT='';
$CookIslandsT='';$CostaRicaT='';$CôtedIvoireT='';$CroatiaT='';$CubaT='';
$CyprusT='';$CzechRepublicT='';$DenmarkT='';$DjiboutiT='';$DominicaT ='';
$DominicanRepublicT ='';$ETuadorT='';$EgyptT='';	$ElSalvadorT ='';
$EquatorialGuineaT='';$EritreaT ='';$EstoniaT='';$EthiopiaT='';
$FalklandIslandsMalvinasT='';$FaroeIslandsT='';$FijiT='';$FinlandT='';$FranceT ='';
$FrenchGuianaT='';$FrenchPolynesiaT='';$GabonT='';$GambiaT='';$GeorgiaT ='';
$GermanyT='';$GhanaT='';$GibraltarT ='';$GreeTeT='';$GreenlandT='';$GrenadaT='';
$GuadeloupeT='';$GuamT ='';$GuatemalaT ='';$GuineaT='';$GuineaBissauT='';
$GuyanaT='';$HaitiT='';$HolySeeVaticanCityStateT='';$HondurasT='';$HongKongT ='';$EcuadorT='';

$HungaryT='';$IcelandT='';$IndonesiaT='';$iNumT='';$IranIslamicRepublicofT ='';$AntarcticaT='';$SaintVincenttheGrenadinesT='';
$IraqT ='';$IrelandT='';$IsraelT ='';$ItalyT='';$JamaicaT='';$JordanT='';
$KazakhstanT='';$KenyaT ='';$KiribatiT='';$KoreaDemocraticPeoplesRepublicofT ='';
$KoreaRepublicofT='';$KuwaitT='';$KyrgyzstanT='';$LaoPeoplesDemocraticRepublicT='';
$LebanonT='';$LesothoT='';$LiberiaT='';$LibyanArabJamahiriyaT='';$LiechtensteinT='';
$LithuaniaT='';$LuxembourgT='';$MacaoT='';$MacedoniaTheFormerYugoslavRepublicOfT='';
$MadagascarT='';$MalawiT='';$MaldivesT='';$MaliT='';$MaltaT='';$MarshallIslandsT='';$SaoTomePrincipeT='';
$MartiniqueT='';$MauritaniaT='';$MauritiusT='';$MayotteT='';$MexicoT='';$MicronesiaFederatedStatesofT='';
$MoldovaRepublicofT='';$MonacoT='';$MongoliaT='';$MontenegroT='';$MontserratT='';
$MoroccoT='';$MozambiqueT='';$MyanmarT='';$NamibiaT='';$NauruT='';$NepalT='';
$NetherlandsT='';$NewCaledoniaT='';$NewZealandT='';$NicaraguaT='';$NigerT='';
$NigeriaT='';$NiueT='';$NorthernMarianaIslandsT='';$NorwayT='';$OmanT='';
$PakistanT='';$PalauT='';$PalestiniancerritoryOccupiedT='';$PanamaT='';$PapuaGuineaT='';
$ParaguayT='';$PeruT='';$PhilippinesT='';$PolandT='';$PortugalT='';$PuertoRicoT='';
$QatarT='';$RomaniaT='';$RussianFederationT='';$RwandaT='';
$SaintHelenaT='';$SaintPierreMiquelonT='';$SaintVinTenttheGrenadinesT='';
$SamoaT='';$SanMarinoT='';$SaoTomePrinTipeT='';$SaudiArabiaT='';$SenegalT='';
$SerbiaT='';$SeychellesT='';$SierraLeoneT='';$SlovakiaT='';$SloveniaT='';
$SolomonIslandsT='';$SomaliaT='';$SouthSudanT='';$SpainT='';$SriLankaT='';
$SudanT='';$SurinameT='';$SwazilandT='';$SwedenT='';$SwitzerlandT='';$SyrianArabRepublicT='';
$TaiwanT='';$TajikistanT='';$TanzaniaUnitedRepublicofT='';$ThailandT='';
$TimorLesteT='';$TogoT='';$TokelauT='';$TongaT='';$TrinidadTobagoT='';
$TunisiaT='';$TurkeyT='';$TurkmenistanT='';$TurksCaicosIslandsT='';$TuvaluT='';$GreeceT='';
$UgandaT='';$UkraineT='';$UnitedArabEmiratesT='';$UnitedStatesT='';$UruguayT='';
$UzbekistanT='';$VanuatuT='';$VenezuelaT='';$VietnamT='';$VirginIslandsBritishT='';
$VirginIslandsUST='';$WallisFutunaT='';$YemenT='';$ZambiaT='';$ZimbabweT='';$SaintLuciaT='';
if(count($graph1['infoCdrs'])!=0){
	foreach($graph1['infoCdrs'] as $data){ 
		if($india==$data['feePrefix']){
			$indiaC=$indiaC+$data['fee'];
			$indiaT=$indiaT+$data['feeTime'];
		}
		if($malaysia==$data['feePrefix']){
			$malaysiaC=$malaysiaC+$data['fee'];
			$malaysiaT=$malaysiaT+$data['feeTime'];
		}
		if($China==$data['feePrefix']){
			$ChinaC=$ChinaC+$data['fee'];
			$ChinaT=$ChinaT+$data['feeTime'];
		}
		if($japan==$data['feePrefix']){
			$japanC=$japanC+$data['fee'];
			$japanT=$japanT+$data['feeTime'];
		}
		if($southAfrica==$data['feePrefix']){
			$southAfricaC=$southAfricaC+$data['fee'];
			$southAfricaT=$southAfricaT+$data['feeTime'];
		}
		if($uk==$data['feePrefix']){
			$ukC=$ukC+$data['fee'];
			$ukT=$ukT+$data['feeTime'];
		}
		if($singapore==$data['feePrefix']){
			$singaporeC=$singaporeC+$data['fee'];
			$singaporeT=$singaporeT+$data['feeTime'];
		}
		
		if($Afghanistan==$data['feePrefix']){
			$AfghanistanC=$AfghanistanC+$data['fee'];
			$AfghanistanT=$AfghanistanT+$data['feeTime'];
		}
		if($Albania==$data['feePrefix']){
			$AlbaniaC=$AlbaniaC+$data['fee'];
			$AlbaniaT=$AlbaniaT+$data['feeTime'];
		}
		if($NetherlandsAntilles==$data['feePrefix']){
			$NetherlandsAntillesC=$NetherlandsAntillesC+$data['fee'];
			$NetherlandsAntillesT=$NetherlandsAntillesT+$data['feeTime'];
		}
		if($Algeria==$data['feePrefix']){
			$AlgeriaC=$AlgeriaC+$data['fee'];
			$AlgeriaT=$AlgeriaT+$data['feeTime'];
		}
		if($AmericanSamoa==$data['feePrefix']){
			$AmericanSamoaC=$AmericanSamoaC+$data['fee'];
			$AmericanSamoaT=$AmericanSamoaT+$data['feeTime'];
		}
		if($Andorra==$data['feePrefix']){
			$AndorraC=$AndorraC+$data['fee'];
			$AndorraT=$AndorraT+$data['feeTime'];
		}
		if($Angola==$data['feePrefix']){
			$AngolaC=$AngolaC+$data['fee'];
			$AngolaT=$AngolaT+$data['feeTime'];
		}
		if($Anguilla==$data['feePrefix']){
			$AnguillaC=$AnguillaC+$data['fee'];
			$AnguillaT=$AnguillaT+$data['feeTime'];
		}
		if($Antarctica==$data['feePrefix']){
			$AntarcticaC=$AntarcticaC+$data['fee'];
			$AntarcticaT=$AntarcticaT+$data['feeTime'];
		}
		if($AntiguaBarbuda==$data['feePrefix']){
			$AntiguaBarbudaC=$AntiguaBarbudaC+$data['fee'];
			$AntarcticaT=$AntiguaBarbudaT+$data['feeTime'];
		}
		if($Armenia==$data['feePrefix']){
			$ArmeniaC=$ArmeniaC+$data['fee'];
			$ArmeniaT=$ArmeniaT+$data['feeTime'];
		}
		if($Aruba==$data['feePrefix']){
			$ArubaC=$ArubaC+$data['fee'];
			$ArubaT=$ArubaT+$data['feeTime'];
		}
		if($Australia==$data['feePrefix']){
			$AustraliaC=$AustraliaC+$data['fee'];
			$AustraliaT=$AustraliaT+$data['feeTime'];
		}
		if($Austria==$data['feePrefix']){
			$AustriaC=$AustriaC+$data['fee'];
			$AustriaT=$AustriaT+$data['feeTime'];
		}
		if($Azerbaijan==$data['feePrefix']){
			$AzerbaijanC=$AzerbaijanC+$data['fee'];
			$AzerbaijanT=$AzerbaijanT+$data['feeTime'];
		}
		if($Bahamas==$data['feePrefix']){
			$BahamasC=$BahamasC+$data['fee'];
			$BahamasT=$BahamasT+$data['feeTime'];
		}
		if($Bahrain==$data['feePrefix']){
			$BahrainC=$BahrainC+$data['fee'];
			$BahrainT=$BahrainT+$data['feeTime'];
		}
		if($Bangladesh==$data['feePrefix']){
			$BangladeshC=$BangladeshC+$data['fee'];
			$BangladeshT=$BangladeshT+$data['feeTime'];
		}
		if($Barbados==$data['feePrefix']){
			$BarbadosC=$BarbadosC+$data['fee'];
			$BarbadosT=$BarbadosT+$data['feeTime'];
		}
		if($Belarusc==$data['feePrefix']){
			$BelaruscC=$BelaruscC+$data['fee'];
			$BelaruscT=$BelaruscT+$data['feeTime'];
		}
		if($Belgium==$data['feePrefix']){
			$BelgiumC=$BelgiumC+$data['fee'];
			$BelgiumT=$BelgiumT+$data['feeTime'];
		}
		if($Belize==$data['feePrefix']){
			$BelizeC=$BelizeC+$data['fee'];
			$BelizeT=$BelizeT+$data['feeTime'];
		}
		if($Benin==$data['feePrefix']){
			$BeninC=$BeninC+$data['fee'];
			$BeninT=$BeninT+$data['feeTime'];
		}
		if($Bermuda==$data['feePrefix']){
			$BermudaC=$BermudaC+$data['fee'];
			$BermudaT=$BermudaT+$data['feeTime'];
		}
		if($Bhutan==$data['feePrefix']){
			$BhutanC=$BhutanC+$data['fee'];
			$BhutanT=$BhutanT+$data['feeTime'];
		}
		if($Bolivia==$data['feePrefix']){
			$BoliviaC=$BoliviaC+$data['fee'];
			$BoliviaT=$BoliviaT+$data['feeTime'];
		}
		if($BosniaHerzegovina==$data['feePrefix']){
			$BosniaHerzegovinaC=$BosniaHerzegovinaC+$data['fee'];
			$BosniaHerzegovinaT=$BosniaHerzegovinaT+$data['feeTime'];
		}
		if($Botswana==$data['feePrefix']){
			$BotswanaC=$BotswanaC+$data['fee'];
			$BotswanaT=$BotswanaT+$data['feeTime'];
		}
		if($Brazil==$data['feePrefix']){
			$BrazilC=$BrazilC+$data['fee'];
			$BrazilT=$BrazilT+$data['feeTime'];
		}
		if($BruneiDarussalam==$data['feePrefix']){
			$BruneiDarussalamC=$BruneiDarussalamC+$data['fee'];
			$BruneiDarussalamT=$BrazilT+$data['feeTime'];
		}
		if($Bulgaria==$data['feePrefix']){
			$BulgariaC=$BulgariaC+$data['fee'];
			$BulgariaT=$BulgariaT+$data['feeTime'];
		}
		if($BurkinaFaso==$data['feePrefix']){
			$BurkinaFasoC=$BurkinaFasoC+$data['fee'];
			$BurkinaFasoT=$BurkinaFasoT+$data['feeTime'];
		}
		if($Burundi==$data['feePrefix']){
			$BurundiC=$BurundiC+$data['fee'];
			$BurundiT=$BurundiT+$data['feeTime'];
		}
		if($Cambodia==$data['feePrefix']){
			$CambodiaC=$CambodiaC+$data['fee'];
			$CambodiaT=$CambodiaT+$data['feeTime'];
		}
		if($Cameroon==$data['feePrefix']){
			$CameroonC=$CameroonC+$data['fee'];
			$CameroonT=$CameroonT+$data['feeTime'];
		}
		if($Canada==$data['feePrefix']){
			$CanadaC=$CanadaC+$data['fee'];
			$CanadaT=$CanadaT+$data['feeTime'];
		}
		if($CapeVerde==$data['feePrefix']){
			$CapeVerdeC=$CapeVerdeC+$data['fee'];
			$CapeVerdeT=$CapeVerdeT+$data['feeTime'];
		}
		if($CaymanIslands==$data['feePrefix']){
			$CaymanIslandsC=$CaymanIslandsC+$data['fee'];
			$CaymanIslandsT=$CaymanIslandsT+$data['feeTime'];
		}
		if($CentralAfricanRepublic==$data['feePrefix']){
			$CentralAfricanRepublicC=$CentralAfricanRepublicC+$data['fee'];
			$CentralAfricanRepublicT=$CentralAfricanRepublicT+$data['feeTime'];
		}
		if($Chad==$data['feePrefix']){
			$ChadC=$ChadC+$data['fee'];
			$ChadT=$ChadT+$data['feeTime'];
		}
		if($Chile==$data['feePrefix']){
			$ChileC=$ChileC+$data['fee'];
			$ChileT=$ChileT+$data['feeTime'];
		}
		if($Colombia==$data['feePrefix']){
			$ColombiaC=$ColombiaC+$data['fee'];
			$ColombiaT=$ColombiaT+$data['feeTime'];
		}
		if($Comoros==$data['feePrefix']){
			$ComorosC=$ComorosC+$data['fee'];
			$ComorosT=$ComorosT+$data['feeTime'];
		}
		if($Congo==$data['feePrefix']){
			$CongoC=$CongoC+$data['fee'];
			$CongoT=$CongoT+$data['feeTime'];
		}
		if($CongotheDemocraticRepublic==$data['feePrefix']){
			$CongotheDemocraticRepublicC=$CongotheDemocraticRepublicC+$data['fee'];
			$CongotheDemocraticRepublicT=$CongotheDemocraticRepublicT+$data['feeTime'];
		}
		if($CookIslands==$data['feePrefix']){
			$CookIslandsC=$CookIslandsC+$data['fee'];
			$CookIslandsT=$CookIslandsT+$data['feeTime'];
		}
		if($CostaRica==$data['feePrefix']){
			$CostaRicaC=$CostaRicaC+$data['fee'];
			$CostaRicaT=$CostaRicaT+$data['feeTime'];
		}
		if($CôtedIvoire==$data['feePrefix']){
			$CôtedIvoireC=$CôtedIvoireC+$data['fee'];
			$CôtedIvoireT=$CôtedIvoireT+$data['feeTime'];
		}
		if($Croatia==$data['feePrefix']){
			$CroatiaC=$CroatiaC+$data['fee'];
			$CroatiaT=$CroatiaT+$data['feeTime'];
		}
		if($Cuba==$data['feePrefix']){
			$CubaC=$CubaC+$data['fee'];
			$CubaT=$CubaT+$data['feeTime'];
		}
		if($Cyprus==$data['feePrefix']){
			$CyprusC=$CyprusC+$data['fee'];
			$CyprusT=$CyprusT+$data['feeTime'];
		}
		if($CzechRepublic==$data['feePrefix']){
			$CzechRepublicC=$CzechRepublicC+$data['fee'];
			$CzechRepublicT=$CzechRepublicT+$data['feeTime'];
		}
		if($Denmark==$data['feePrefix']){
			$DenmarkC=$DenmarkC+$data['fee'];
			$DenmarkT=$DenmarkT+$data['feeTime'];
		}
		if($Djibouti==$data['feePrefix']){
			$DjiboutiC=$DjiboutiC+$data['fee'];
			$DjiboutiT=$DjiboutiT+$data['feeTime'];
		}
		if($Dominica==$data['feePrefix']){
			$DominicaC=$DominicaC+$data['fee'];
			$DominicaT=$DominicaT+$data['feeTime'];
		}
		if($DominicanRepublic==$data['feePrefix']){
			$DominicanRepublicC=$DominicanRepublicC+$data['fee'];
			$DominicanRepublicT=$DominicanRepublicT+$data['feeTime'];
		}
		if($Ecuador==$data['feePrefix']){
			$EcuadorC=$EcuadorC+$data['fee'];
			$EcuadorT=$EcuadorT+$data['feeTime'];
		}
		if($Egypt==$data['feePrefix']){
			$EgyptC=$EgyptC+$data['fee'];
			$EgyptT=$EgyptT+$data['feeTime'];
		}
		if($ElSalvador==$data['feePrefix']){
			$ElSalvadorC=$ElSalvadorC+$data['fee'];
			$ElSalvadorT=$ElSalvadorT+$data['feeTime'];
		}
		if($EquatorialGuinea==$data['feePrefix']){
			$EritreaC=$EritreaC+$data['fee'];
			$EritreaT=$EritreaT+$data['feeTime'];
		}
		if($Estonia==$data['feePrefix']){
			$EstoniaC=$EstoniaC+$data['fee'];
			$EstoniaT=$EstoniaT+$data['feeTime'];
		}
		if($Ethiopia==$data['feePrefix']){
			$EthiopiaC=$EthiopiaC+$data['fee'];
			$EthiopiaT=$EthiopiaT+$data['feeTime'];
		}
		if($FalklandIslandsMalvinas==$data['feePrefix']){
			$FalklandIslandsMalvinasC=$FalklandIslandsMalvinasC+$data['fee'];
			$FalklandIslandsMalvinasT=$FalklandIslandsMalvinasT+$data['feeTime'];
		}
		if($FaroeIslands==$data['feePrefix']){
			$FaroeIslandsC=$FaroeIslandsC+$data['fee'];
			$FaroeIslandsT=$FaroeIslandsT+$data['feeTime'];
		}
		if($Fiji==$data['feePrefix']){
			$FijiC=$FijiC+$data['fee'];
			$FijiT=$FijiT+$data['feeTime'];
		}
		if($Finland==$data['feePrefix']){
			$FinlandC=$FinlandC+$data['fee'];
			$FinlandT=$FinlandT+$data['feeTime'];
		}
		if($France==$data['feePrefix']){
			$FranceC=$FranceC+$data['fee'];
			$FranceT=$FranceT+$data['feeTime'];
		}
		if($FrenchGuiana==$data['feePrefix']){
			$FrenchGuianaC=$FrenchGuianaC+$data['fee'];
			$FrenchGuianaT=$FrenchGuianaT+$data['feeTime'];
		}
		if($FrenchPolynesia==$data['feePrefix']){
			$FrenchPolynesiaC=$FrenchPolynesiaC+$data['fee'];
			$FrenchPolynesiaT=$FrenchPolynesiaT+$data['feeTime'];
		}
		if($Gabon==$data['feePrefix']){
			$GabonC=$GabonC+$data['fee'];
			$GabonT=$GabonT+$data['feeTime'];
		}
		if($Gambia==$data['feePrefix']){
			$GambiaC=$GambiaC+$data['fee'];
			$GambiaT=$GambiaT+$data['feeTime'];
		}
		if($Georgia==$data['feePrefix']){
			$GeorgiaC=$GeorgiaC+$data['fee'];
			$GeorgiaT=$GeorgiaT+$data['feeTime'];
		}
		if($Germany==$data['feePrefix']){
			$GermanyC=$GermanyC+$data['fee'];
			$GermanyT=$GermanyT+$data['feeTime'];
		}
		if($Ghana==$data['feePrefix']){
			$GhanaC=$GhanaC+$data['fee'];
			$GhanaT=$GhanaT+$data['feeTime'];
		}
		if($Gibraltar==$data['feePrefix']){
			$GibraltarC=$GibraltarC+$data['fee'];
			$GibraltarT=$GibraltarT+$data['feeTime'];
		}
		if($Greece==$data['feePrefix']){
			$GreeceC=$GreeceC+$data['fee'];
			$GreeceT=$GreeceT+$data['feeTime'];
		}
		if($Greenland==$data['feePrefix']){
			$GreenlandC=$GreenlandC+$data['fee'];
			$GreenlandT=$GreenlandT+$data['feeTime'];
		}
		if($Grenada==$data['feePrefix']){
			$GrenadaC=$GrenadaC+$data['fee'];
			$GrenadaT=$GrenadaT+$data['feeTime'];
		}
		if($Guadeloupe==$data['feePrefix']){
			$GuadeloupeC=$GuadeloupeC+$data['fee'];
			$GuadeloupeT=$GuadeloupeT+$data['feeTime'];
		}
		if($Guam==$data['feePrefix']){
			$GuamC=$GuamC+$data['fee'];
			$GuamT=$GuamT+$data['feeTime'];
		}
		if($Guatemala==$data['feePrefix']){
			$GuatemalaC=$GuatemalaC+$data['fee'];
			$GuatemalaT=$GuatemalaT+$data['feeTime'];
		}
		if($Guinea==$data['feePrefix']){
			$GuineaC=$GuineaC+$data['fee'];
			$GuineaT=$GuineaT+$data['feeTime'];
		}
		if($GuineaBissau==$data['feePrefix']){
			$GuineaBissauC=$GuineaBissauC+$data['fee'];
			$GuineaBissauT=$GuineaBissauT+$data['feeTime'];
		}
		if($GuineaBissau==$data['feePrefix']){
			$GuineaBissauC=$GuineaBissauC+$data['fee'];
			$GuineaBissauT=$GuineaBissauT+$data['feeTime'];
		}
		if($Guyana==$data['feePrefix']){
			$GuyanaC=$GuyanaC+$data['fee'];
			$GuyanaT=$GuyanaT+$data['feeTime'];
		}
		if($Haiti==$data['feePrefix']){
			$HaitiC=$HaitiC+$data['fee'];
			$HaitiT=$HaitiT+$data['feeTime'];
		}
		if($HolySeeVaticanCityState==$data['feePrefix']){
			$HolySeeVaticanCityStateC=$HolySeeVaticanCityStateC+$data['fee'];
			$HolySeeVaticanCityStateT=$HolySeeVaticanCityStateT+$data['feeTime'];
		}
		if($Honduras==$data['feePrefix']){
			$HondurasC=$HaitiC+$data['fee'];
			$HondurasT=$HondurasT+$data['feeTime'];
		}
		if($HongKong==$data['feePrefix']){
			$HongKongC=$HongKongC+$data['fee'];
			$HongKongT=$HongKongT+$data['feeTime'];
		}
		if($Hungary==$data['feePrefix']){
			$HungaryC=$HungaryC+$data['fee'];
			$HungaryT=$HungaryT+$data['feeTime'];
		}
		if($Iceland==$data['feePrefix']){
			$IcelandC=$IcelandC+$data['fee'];
			$IcelandT=$IcelandT+$data['feeTime'];
		}
		if($Indonesia==$data['feePrefix']){
			$IndonesiaC=$IndonesiaC+$data['fee'];
			$IndonesiaT=$IndonesiaT+$data['feeTime'];
		}
		if($iNum==$data['feePrefix']){
			$iNumC=$iNumC+$data['fee'];
			$iNumT=$iNumT+$data['feeTime'];
		}
		if($IranIslamicRepublicof==$data['feePrefix']){
			$IranIslamicRepublicofC=$IranIslamicRepublicofC+$data['fee'];
			$IranIslamicRepublicofT=$IranIslamicRepublicofT+$data['feeTime'];
		}
		if($Iraq==$data['feePrefix']){
			$IraqC=$IraqC+$data['fee'];
			$IraqT=$IraqT+$data['feeTime'];
		}
		if($Ireland==$data['feePrefix']){
			$IrelandC=$IrelandC+$data['fee'];
			$IrelandT=$IrelandT+$data['feeTime'];
		}
		if($Israel==$data['feePrefix']){
			$IsraelC=$IsraelC+$data['fee'];
			$IsraelT=$IsraelT+$data['feeTime'];
		}
		if($Italy==$data['feePrefix']){
			$ItalyC=$ItalyC+$data['fee'];
			$ItalyT=$ItalyT+$data['feeTime'];
		}
		if($Jamaica==$data['feePrefix']){
			$JamaicaC=$JamaicaC+$data['fee'];
			$JamaicaT=$JamaicaT+$data['feeTime'];
		}
		if($Jordan==$data['feePrefix']){
			$JordanC=$JordanC+$data['fee'];
			$JordanT=$JordanT+$data['feeTime'];
		}
		if($Kazakhstan==$data['feePrefix']){
			$KazakhstanC=$KazakhstanC+$data['fee'];
			$KazakhstanT=$KazakhstanT+$data['feeTime'];
		}
		if($Kenya==$data['feePrefix']){
			$KenyaC=$KenyaC+$data['fee'];
			$KenyaT=$KenyaT+$data['feeTime'];
		}
		if($Kiribati==$data['feePrefix']){
			$KiribatiC=$KiribatiC+$data['fee'];
			$KiribatiT=$KiribatiT+$data['feeTime'];
		}
		if($KoreaDemocraticPeoplesRepublicof==$data['feePrefix']){
			$KoreaDemocraticPeoplesRepublicofC=$KoreaDemocraticPeoplesRepublicofC+$data['fee'];
			$KoreaDemocraticPeoplesRepublicofT=$KoreaDemocraticPeoplesRepublicofT+$data['feeTime'];
		}
		if($KoreaRepublicof==$data['feePrefix']){
			$KoreaRepublicofC=$KoreaRepublicofC+$data['fee'];
			$KoreaRepublicofT=$KoreaRepublicofT+$data['feeTime'];
		}
		if($Kuwait==$data['feePrefix']){
			$KuwaitC=$KuwaitC+$data['fee'];
			$KuwaitT=$KuwaitT+$data['feeTime'];
		}
		if($Kyrgyzstan==$data['feePrefix']){
			$KyrgyzstanC=$KyrgyzstanC+$data['fee'];
			$KyrgyzstanT=$KyrgyzstanT+$data['feeTime'];
		}
		if($LaoPeoplesDemocraticRepublic==$data['feePrefix']){
			$LaoPeoplesDemocraticRepublicC=$LaoPeoplesDemocraticRepublicC+$data['fee'];
			$LaoPeoplesDemocraticRepublicT=$LaoPeoplesDemocraticRepublicT+$data['feeTime'];
		}
		if($Lebanon==$data['feePrefix']){
			$LebanonC=$LebanonC+$data['fee'];
			$LebanonT=$LebanonT+$data['feeTime'];
		}
		if($Lesotho==$data['feePrefix']){
			$LesothoC=$LesothoC+$data['fee'];
			$LesothoT=$LesothoT+$data['feeTime'];
		}
		if($Liberia==$data['feePrefix']){
			$LiberiaC=$LiberiaC+$data['fee'];
			$LiberiaT=$LiberiaT+$data['feeTime'];
		}
		if($LibyanArabJamahiriya==$data['feePrefix']){
			$LibyanArabJamahiriyaC=$LibyanArabJamahiriyaC+$data['fee'];
			$LibyanArabJamahiriyaT=$LibyanArabJamahiriyaT+$data['feeTime'];
		}
		if($Liechtenstein==$data['feePrefix']){
			$LiechtensteinC=$LiechtensteinC+$data['fee'];
			$LiechtensteinT=$LiechtensteinT+$data['feeTime'];
		}
		if($Lithuania==$data['feePrefix']){
			$LithuaniaC=$LithuaniaC+$data['fee'];
			$LithuaniaT=$LithuaniaT+$data['feeTime'];
		}
		if($Luxembourg==$data['feePrefix']){
			$LuxembourgC=$LuxembourgC+$data['fee'];
			$LuxembourgT=$LuxembourgT+$data['feeTime'];
		}
		if($Macao==$data['feePrefix']){
			$MacaoC=$MacaoC+$data['fee'];
			$MacaoT=$MacaoT+$data['feeTime'];
		}
		if($MacedoniaTheFormerYugoslavRepublicOf==$data['feePrefix']){
			$MacedoniaTheFormerYugoslavRepublicOfC=$MacedoniaTheFormerYugoslavRepublicOfC+$data['fee'];
			$MacedoniaTheFormerYugoslavRepublicOfT=$MacedoniaTheFormerYugoslavRepublicOfT+$data['feeTime'];
		}
		if($Madagascar==$data['feePrefix']){
			$MadagascarC=$MadagascarC+$data['fee'];
			$MadagascarT=$MadagascarT+$data['feeTime'];
		}
		if($Malawi==$data['feePrefix']){
			$MalawiC=$MalawiC+$data['fee'];
			$MalawiT=$MalawiT+$data['feeTime'];
		}
		if($Maldives==$data['feePrefix']){
			$MaldivesC=$MaldivesC+$data['fee'];
			$MaldivesT=$MaldivesT+$data['feeTime'];
		}
		if($Mali==$data['feePrefix']){
			$MaliC=$MaliC+$data['fee'];
			$MaliT=$MaliT+$data['feeTime'];
		}
		if($Malta==$data['feePrefix']){
			$MaltaC=$MaltaC+$data['fee'];
			$MaltaT=$MaltaT+$data['feeTime'];
		}
		if($MarshallIslands==$data['feePrefix']){
			$MarshallIslandsC=$MarshallIslandsC+$data['fee'];
			$MarshallIslandsT=$MarshallIslandsT+$data['feeTime'];
		}
		if($Martinique==$data['feePrefix']){
			$MartiniqueC=$MartiniqueC+$data['fee'];
			$MartiniqueT=$MartiniqueT+$data['feeTime'];
		}
		if($Mauritania==$data['feePrefix']){
			$MauritaniaC=$MauritaniaC+$data['fee'];
			$MauritaniaT=$MauritaniaT+$data['feeTime'];
		}
		if($Mauritius==$data['feePrefix']){
			$MauritiusC=$MauritiusC+$data['fee'];
			$MauritiusT=$MauritiusT+$data['feeTime'];
		}
		if($Mayotte==$data['feePrefix']){
			$MayotteC=$MayotteC+$data['fee'];
			$MayotteT=$MayotteT+$data['feeTime'];
		}
		if($Mexico==$data['feePrefix']){
			$MexicoC=$MexicoC+$data['fee'];
			$MexicoT=$MexicoT+$data['feeTime'];
		}
		if($MicronesiaFederatedStatesof==$data['feePrefix']){
			$MicronesiaFederatedStatesofC=$MicronesiaFederatedStatesofC+$data['fee'];
			$MicronesiaFederatedStatesofT=$MicronesiaFederatedStatesofT+$data['feeTime'];
		}
		if($MoldovaRepublicof==$data['feePrefix']){
			$MoldovaRepublicofC=$MoldovaRepublicofC+$data['fee'];
			$MoldovaRepublicofT=$MoldovaRepublicofT+$data['feeTime'];
		}
		if($Monaco==$data['feePrefix']){
			$MonacoC=$MonacoC+$data['fee'];
			$MonacoT=$MonacoT+$data['feeTime'];
		}
		if($Mongolia==$data['feePrefix']){
			$MongoliaC=$MongoliaC+$data['fee'];
			$MongoliaT=$MongoliaT+$data['feeTime'];
		}
		if($Montenegro==$data['feePrefix']){
			$MontenegroC=$MontenegroC+$data['fee'];
			$MontenegroT=$MontenegroT+$data['feeTime'];
		}
		if($Montserrat==$data['feePrefix']){
			$MontserratC=$MontserratC+$data['fee'];
			$MontserratT=$MontserratT+$data['feeTime'];
		}
		if($Morocco==$data['feePrefix']){
			$MoroccoC=$MoroccoC+$data['fee'];
			$MoroccoT=$MoroccoT+$data['feeTime'];
		}
		if($Mozambique==$data['feePrefix']){
			$MozambiqueC=$MozambiqueC+$data['fee'];
			$MozambiqueT=$MozambiqueT+$data['feeTime'];
		}
		if($Myanmar==$data['feePrefix']){
			$MyanmarC=$MyanmarC+$data['fee'];
			$MyanmarT=$MyanmarT+$data['feeTime'];
		}
		if($Namibia==$data['feePrefix']){
			$NamibiaC=$NamibiaC+$data['fee'];
			$NamibiaT=$NamibiaT+$data['feeTime'];
		}
		if($Nauru==$data['feePrefix']){
			$NauruC=$NauruC+$data['fee'];
			$NauruT=$NauruT+$data['feeTime'];
		}
		if($Nepal==$data['feePrefix']){
			$NepalC=$NepalC+$data['fee'];
			$NepalT=$NepalT+$data['feeTime'];
		}
		if($Netherlands==$data['feePrefix']){
			$NetherlandsC=$NetherlandsC+$data['fee'];
			$NetherlandsT=$NetherlandsT+$data['feeTime'];
		}
		if($NewCaledonia==$data['feePrefix']){
			$NewCaledoniaC=$NewCaledoniaC+$data['fee'];
			$NewCaledoniaT=$NewCaledoniaT+$data['feeTime'];
		}
		if($NewZealand==$data['feePrefix']){
			$NewZealandC=$NewZealandC+$data['fee'];
			$NewZealandT=$NewZealandT+$data['feeTime'];
		}
		if($Nicaragua==$data['feePrefix']){
			$NicaraguaC=$NicaraguaC+$data['fee'];
			$NicaraguaT=$NicaraguaT+$data['feeTime'];
		}
		if($Niger==$data['feePrefix']){
			$NigerC=$NigerC+$data['fee'];
			$NigerT=$NigerT+$data['feeTime'];
		}
		if($Nigeria==$data['feePrefix']){
			$NigeriaC=$NigeriaC+$data['fee'];
			$NigeriaT=$NigeriaT+$data['feeTime'];
		}
		if($Niue==$data['feePrefix']){
			$NiueC=$NiueC+$data['fee'];
			$NiueT=$NiueT+$data['feeTime'];
		}
		if($NorthernMarianaIslands==$data['feePrefix']){
			$NorthernMarianaIslandsC=$NorthernMarianaIslandsC+$data['fee'];
			$NorthernMarianaIslandsT=$NorthernMarianaIslandsT+$data['feeTime'];
		}
		if($Norway==$data['feePrefix']){
			$NorwayC=$NorwayC+$data['fee'];
			$NorwayT=$NorwayT+$data['feeTime'];
		}
		if($Oman==$data['feePrefix']){
			$OmanC=$Oman+$data['fee'];
			$OmanT=$OmanT+$data['feeTime'];
		}
		if($Pakistan==$data['feePrefix']){
			$PakistanC=$PakistanC+$data['fee'];
			$PakistanT=$PakistanT+$data['feeTime'];
		}
		if($Palau==$data['feePrefix']){
			$PalauC=$PalauC+$data['fee'];
			$PalauT=$PalauT+$data['feeTime'];
		}
		if($PalestiniancerritoryOccupied==$data['feePrefix']){
			$PalestiniancerritoryOccupiedC=$PalestiniancerritoryOccupiedC+$data['fee'];
			$PalestiniancerritoryOccupiedT=$PalestiniancerritoryOccupiedT+$data['feeTime'];
		}
		if($Panama==$data['feePrefix']){
			$PanamaC=$PanamaC+$data['fee'];
			$PanamaT=$PanamaT+$data['feeTime'];
		}
		if($PapuaGuinea==$data['feePrefix']){
			$PapuaGuineaC=$PapuaGuineaC+$data['fee'];
			$PapuaGuineaT=$PapuaGuineaT+$data['feeTime'];
		}
		if($Paraguay==$data['feePrefix']){
			$ParaguayC=$ParaguayC+$data['fee'];
			$ParaguayT=$ParaguayT+$data['feeTime'];
		}
		if($Peru==$data['feePrefix']){
			$PeruC=$PeruC+$data['fee'];
			$PeruT=$PeruT+$data['feeTime'];
		}
		if($Philippines==$data['feePrefix']){
			$PhilippinesC=$PhilippinesC+$data['fee'];
			$PhilippinesT=$PhilippinesT+$data['feeTime'];
		}
		if($Poland==$data['feePrefix']){
			$PolandC=$PolandC+$data['fee'];
			$PolandT=$PolandT+$data['feeTime'];
		}
		if($Portugal==$data['feePrefix']){
			$PortugalC=$PortugalC+$data['fee'];
			$PortugalT=$PortugalT+$data['feeTime'];
		}
		if($PuertoRico==$data['feePrefix']){
			$PuertoRicoC=$PuertoRicoC+$data['fee'];
			$PuertoRicoT=$PuertoRicoT+$data['feeTime'];
		}
		if($Qatar==$data['feePrefix']){
			$QatarC=$QatarC+$data['fee'];
			$QatarT=$QatarT+$data['feeTime'];
		}
		if($Romania==$data['feePrefix']){
			$RomaniaC=$RomaniaC+$data['fee'];
			$RomaniaT=$RomaniaT+$data['feeTime'];
		}
		if($RussianFederation==$data['feePrefix']){
			$RussianFederationC=$RussianFederationC+$data['fee'];
			$RussianFederationT=$RussianFederationT+$data['feeTime'];
		}
		if($Rwanda==$data['feePrefix']){
			$RwandaC=$RwandaC+$data['fee'];
			$RwandaT=$RwandaT+$data['feeTime'];
		}
		if($SaintHelena==$data['feePrefix']){
			$SaintHelenaC=$SaintHelenaC+$data['fee'];
			$SaintHelenaT=$SaintHelenaT+$data['feeTime'];
		}
		if($SaintPierreMiquelon==$data['feePrefix']){
			$SaintPierreMiquelonC=$SaintPierreMiquelonC+$data['fee'];
			$SaintPierreMiquelonT=$SaintPierreMiquelonT+$data['feeTime'];
		}
		if($Samoa==$data['feePrefix']){
			$SamoaC=$SamoaC+$data['fee'];
			$SamoaT=$SamoaT+$data['feeTime'];
		}
		if($SanMarino==$data['feePrefix']){
			$SanMarinoC=$SanMarinoC+$data['fee'];
			$SanMarinoT=$SanMarinoT+$data['feeTime'];
		}
		if($SaoTomePrincipe==$data['feePrefix']){
			$SaoTomePrincipeC=$SaoTomePrincipeC+$data['fee'];
			$SaoTomePrincipeT=$SaoTomePrincipeT+$data['feeTime'];
		}
		if($SaudiArabia==$data['feePrefix']){
			$SaudiArabiaC=$SaudiArabiaC+$data['fee'];
			$SaudiArabiaT=$SaudiArabiaT+$data['feeTime'];
		}
		if($Senegal==$data['feePrefix']){
			$SenegalC=$SenegalC+$data['fee'];
			$SenegalT=$SenegalT+$data['feeTime'];
		}
		if($Serbia==$data['feePrefix']){
			$SerbiaC=$SerbiaC+$data['fee'];
			$SerbiaT=$SerbiaT+$data['feeTime'];
		}
		if($Seychelles==$data['feePrefix']){
			$SeychellesC=$SeychellesC+$data['fee'];
			$SeychellesT=$SeychellesT+$data['feeTime'];
		}
		if($SierraLeone==$data['feePrefix']){
			$SierraLeoneC=$SierraLeoneC+$data['fee'];
			$SierraLeoneT=$SierraLeoneT+$data['feeTime'];
		}
		if($Slovakia==$data['feePrefix']){
			$SlovakiaC=$SlovakiaC+$data['fee'];
			$SlovakiaT=$SlovakiaT+$data['feeTime'];
		}
		if($Slovenia==$data['feePrefix']){
			$SloveniaC=$SloveniaC+$data['fee'];
			$SloveniaT=$SloveniaT+$data['feeTime'];
		}
		if($SolomonIslands==$data['feePrefix']){
			$SolomonIslandsC=$SolomonIslandsC+$data['fee'];
			$SolomonIslandsT=$SolomonIslandsT+$data['feeTime'];
		}
		if($Somalia==$data['feePrefix']){
			$SomaliaC=$SomaliaC+$data['fee'];
			$SomaliaT=$SomaliaT+$data['feeTime'];
		}
		if($SouthSudan==$data['feePrefix']){
			$SouthSudanC=$SouthSudanC+$data['fee'];
			$SouthSudanT=$SouthSudanT+$data['feeTime'];
		}
		if($Spain==$data['feePrefix']){
			$SpainC=$SpainC+$data['fee'];
			$SpainT=$SpainT+$data['feeTime'];
		}
		if($SriLanka==$data['feePrefix']){
			$SriLankaC=$SriLankaC+$data['fee'];
			$SriLankaT=$SriLankaT+$data['feeTime'];
		}
		if($Sudan==$data['feePrefix']){
			$SudanC=$SudanC+$data['fee'];
			$SudanT=$SudanT+$data['feeTime'];
		}
		if($Suriname==$data['feePrefix']){
			$SurinameC=$SurinameC+$data['fee'];
			$SurinameT=$SurinameT+$data['feeTime'];
		}
		if($Swaziland==$data['feePrefix']){
			$SwazilandC=$SwazilandC+$data['fee'];
			$SwazilandT=$SwazilandT+$data['feeTime'];
		}
		if($Sweden==$data['feePrefix']){
			$SwedenC=$SwedenC+$data['fee'];
			$SwedenT=$SwedenT+$data['feeTime'];
		}
		if($Switzerland==$data['feePrefix']){
			$SwitzerlandC=$SwitzerlandC+$data['fee'];
			$SwitzerlandT=$SwitzerlandT+$data['feeTime'];
		}
		if($SyrianArabRepublic==$data['feePrefix']){
			$SyrianArabRepublicC=$SyrianArabRepublicC+$data['fee'];
			$SyrianArabRepublicT=$SyrianArabRepublicT+$data['feeTime'];
		}
		if($Taiwan==$data['feePrefix']){
			$TaiwanC=$TaiwanC+$data['fee'];
			$TaiwanT=$TaiwanT+$data['feeTime'];
		}
		if($Tajikistan==$data['feePrefix']){
			$TajikistanC=$TajikistanC+$data['fee'];
			$TajikistanT=$TajikistanT+$data['feeTime'];
		}
		if($TanzaniaUnitedRepublicof==$data['feePrefix']){
			$TanzaniaUnitedRepublicofC=$TanzaniaUnitedRepublicofC+$data['fee'];
			$TanzaniaUnitedRepublicofT=$TanzaniaUnitedRepublicofT+$data['feeTime'];
		}
		if($Thailand==$data['feePrefix']){
			$ThailandC=$ThailandC+$data['fee'];
			$ThailandT=$ThailandT+$data['feeTime'];
		}
		if($TimorLeste==$data['feePrefix']){
			$TimorLesteC=$TimorLesteC+$data['fee'];
			$TimorLesteT=$TimorLesteT+$data['feeTime'];
		}
		if($Togo==$data['feePrefix']){
			$TogoC=$TogoC+$data['fee'];
			$TogoT=$TogoT+$data['feeTime'];
		}
		if($Tokelau==$data['feePrefix']){
			$TokelauC=$TokelauC+$data['fee'];
			$TokelauT=$TokelauT+$data['feeTime'];
		}
		if($Tonga==$data['feePrefix']){
			$TongaC=$TongaC+$data['fee'];
			$TongaT=$TongaT+$data['feeTime'];
		}
		if($TrinidadTobago==$data['feePrefix']){
			$TrinidadTobagoC=$TrinidadTobagoC+$data['fee'];
			$TrinidadTobagoT=$TrinidadTobagoT+$data['feeTime'];
		}
		if($Tunisia==$data['feePrefix']){
			$TunisiaC=$TunisiaC+$data['fee'];
			$TunisiaT=$TunisiaT+$data['feeTime'];
		}
		if($Turkey==$data['feePrefix']){
			$TurkeyC=$TurkeyC+$data['fee'];
			$TurkeyT=$TurkeyT+$data['feeTime'];
		}
		if($Turkmenistan==$data['feePrefix']){
			$TurkmenistanC=$TurkmenistanC+$data['fee'];
			$TurkmenistanT=$TurkmenistanT+$data['feeTime'];
		}
		if($TurksCaicosIslands==$data['feePrefix']){
			$TurksCaicosIslandsC=$TurksCaicosIslandsC+$data['fee'];
			$TurksCaicosIslandsT=$TurksCaicosIslandsT+$data['feeTime'];
		}
		if($Tuvalu==$data['feePrefix']){
			$TuvaluC=$TuvaluC+$data['fee'];
			$TuvaluT=$TuvaluT+$data['feeTime'];
		}
		if($Uganda==$data['feePrefix']){
			$UgandaC=$UgandaC+$data['fee'];
			$UgandaT=$UgandaT+$data['feeTime'];
		}
		if($Ukraine==$data['feePrefix']){
			$UkraineC=$UkraineC+$data['fee'];
			$UkraineT=$UkraineT+$data['feeTime'];
		}
		if($UnitedArabEmirates==$data['feePrefix']){
			$UnitedArabEmiratesC=$UnitedArabEmiratesC+$data['fee'];
			$UnitedArabEmiratesT=$UnitedArabEmiratesT+$data['feeTime'];
		}
		if($UnitedStates==$data['feePrefix']){
			$UnitedStatesC=$UnitedStatesC+$data['fee'];
			$UnitedStatesT=$UnitedStatesT+$data['feeTime'];
		}
		if($Uruguay==$data['feePrefix']){
			$UruguayC=$UruguayC+$data['fee'];
			$UruguayT=$UruguayT+$data['feeTime'];
		}
		if($Vanuatu==$data['feePrefix']){
			$VanuatuC=$VanuatuC+$data['fee'];
			$VanuatuT=$VanuatuT+$data['feeTime'];
		}
		if($Uzbekistan==$data['feePrefix']){
			$UzbekistanC=$UzbekistanC+$data['fee'];
			$UzbekistanT=$UzbekistanT+$data['feeTime'];
		}
		if($VenezuelaC==$data['feePrefix']){
			$VenezuelaC=$VenezuelaC+$data['fee'];
			$VenezuelaT=$VenezuelaT+$data['feeTime'];
		}
		if($Vietnam==$data['feePrefix']){
			$VietnamC=$VietnamC+$data['fee'];
			$VietnamT=$VietnamT+$data['feeTime'];
		}
		if($VirginIslandsBritish==$data['feePrefix']){
			$VirginIslandsBritishC=$VirginIslandsBritishC+$data['fee'];
			$VirginIslandsBritishT=$VirginIslandsBritishT+$data['feeTime'];
		}
		if($VirginIslandsUS==$data['feePrefix']){
			$VirginIslandsUSC=$VirginIslandsUSC+$data['fee'];
			$VirginIslandsUST=$VirginIslandsUST+$data['feeTime'];
		}
		if($WallisFutuna==$data['feePrefix']){
			$WallisFutunaC=$WallisFutunaC+$data['fee'];
			$WallisFutunaT=$WallisFutunaT+$data['feeTime'];
		}
		if($Yemen==$data['feePrefix']){
			$YemenC=$YemenC+$data['fee'];
			$YemenT=$YemenT+$data['feeTime'];
		}
		if($Zambia==$data['feePrefix']){
			$ZambiaC=$ZambiaC+$data['fee'];
			$ZambiaT=$ZambiaT+$data['feeTime'];
		}
		if($Zimbabwe==$data['feePrefix']){
			$ZimbabweC=$ZimbabweC+$data['fee'];
			$ZimbabweT=$ZimbabweT+$data['feeTime'];
		}
	}


		$Uindia="India".$indiaC;
		$Umalaysia="malaysia".$malaysiaC;
		$Umalaysia="malaysia".$malaysiaC;
		$Uindia="India".$indiaC;
		$Umalaysia="malaysia".$malaysiaC;
		$UChina="China".$ChinaC;
		$Ujapan="japan".$japanC;
		$UsouthAfrica="southAfricaC".$southAfricaC;
		$Uuk="uk".$ukC;
		$Usingapore="singapore".$singaporeC;
		$UAfghanistan="Afghanistan".$AfghanistanC;
		$UAlbania="Albania".$AlbaniaC;
		$UNetherlandsAntilles="NetherlandsAntilles".$NetherlandsAntillesC;
		$UAlgeria="Algeria".$AlgeriaC;
		$UAmericanSamoa="AmericanSamoa".$AmericanSamoaC;
		$UAndorra="Andorra".$AndorraC;
		$UAngola="Angola".$AngolaC;
		$UAnguilla="Anguilla".$AnguillaC;
		$UAntarctica="AntarcticaC".$AntarcticaC;
		$UAntiguaBarbuda="AntiguaBarbuda".$AntiguaBarbudaC;
		$UArgentina="Argentina".$ArgentinaC;
		$UArmenia="Armenia".$ArmeniaC;
		$UAustralia="Australia".$AustraliaC;
		$UAustria="Austria".$AustriaC;
		$UAzerbaijan="Azerbaijan".$AzerbaijanC;
		$UBahamas="Bahamas".$BahamasC;
		$UBahrain="Bahrain".$BahrainC;
		$UBangladesh="Bangladesh".$BangladeshC;
		$UBarbadosc="Barbadosc".$BarbadoscC;
		$UBelarusc="Belarusc".$BelaruscC;
		$UBelgium="Belgium".$BelgiumC;
		$UBelize="Belize".$BelizeC;
		$UBenin="Benin".$BeninC;
		$UBermuda="Bermuda".$BermudaC;
		$UBhutan="Bhutan".$BhutanC;
		$Uolivia="Bolivia".$BoliviaC;
		$UBosniaHerzegovina="BosniaHerzegovina".$BosniaHerzegovinaC;
		$UBotswana="Botswana".$BotswanaC;
		$UBrazil="Brazil".$BrazilC;
		$UBruneiDarussalam="BruneiDarussalam".$BruneiDarussalamC;
		$UBulgaria="Bulgaria".$BulgariaC;
		$UBurkinaFaso="BurkinaFaso".$BurkinaFasoC;
		$UBurundi="Burundi".$BurundiC;
		$UCambodia="Cambodia".$CambodiaC;
		$UCameroon="Cameroon".$CameroonC;
		$UCanada="Canada".$CanadaC;
		$UCapeVerde="CapeVerde".$CapeVerdeC;
		$UCaymanIslands="CaymanIslands".$CaymanIslandsC;
		$UCentralAfricanRepublic="CentralAfricanRepublic".$CentralAfricanRepublicC;
		$UChad="Chad".$ChadC;
		$UChile="Chile".$ChileC;
		$UColombia="Colombia".$ColombiaC;
		$UComoros="Comoros".$ComorosC;
		$UCongo="Congo".$CongoC;
		$UCongotheDemocraticRepublic="CongotheDemocraticRepublic".$CongotheDemocraticRepublicC;
		$UCookIslands="CookIslands".$CookIslandsC;
		$UCostaRica="CostaRica".$CostaRicaC;
		$UCôtedIvoire="CôtedIvoire".$CôtedIvoireC;
		$UCroatia="Croatia".$CroatiaC;
		$UCuba="Cuba".$CubaC;
		$UCyprus="Cyprus".$CyprusC;
		$UCzechRepublic="CzechRepublic".$CzechRepublicC;
		$UDenmark="Denmark".$DenmarkC;
		$UDjibouti="Djibouti".$DjiboutiC;
		$UDominica="Dominica".$DominicaC;
		$UDominicanRepublic="DominicanRepublic".$DominicanRepublicC;
		$UEcuador="Ecuador".$EcuadorC;
		$UEgypt="Egypt".$EgyptC;
		$UElSalvador="ElSalvador".$ElSalvadorC;
		$UEquatorialGuinea="EquatorialGuinea".$EquatorialGuineaC;
		$UEritrea="Eritrea".$EritreaC;
		$UEstonia="Estonia".$EstoniaC;
		$UEthiopia="Ethiopia".$EthiopiaC;
		$UFalklandIslandsMalvinas="FalklandIslandsMalvinas".$FalklandIslandsMalvinasC;
		$UFaroeIslands="FaroeIslands".$FaroeIslandsC;
		$UFiji="Fiji".$FijiC;
		$UFinland="Finland".$FinlandC;
		$UFrance="France".$FranceC;
		$UFrenchGuiana="FrenchGuiana".$FrenchGuianaC;
		$UFrenchPolynesia="FrenchPolynesia".$FrenchPolynesiaC;
		$UGabon="Gabon".$GabonC;
		$UGambia="Gambia".$GambiaC;
		$UGeorgia="Georgia".$GeorgiaC;
		$UGermany="Germany".$GermanyC;
		$UGhana="Ghana".$GhanaC;
		$UGibraltar="Gibraltar".$GibraltarC;
		$UGreece="Greece".$GreeceC;
		$UGreenland="Greenland".$GreenlandC;
		$UGrenada="Grenada".$GrenadaC;
		$UGuadeloupe="Guadeloupe".$GuadeloupeC;
		$UGuam="Guam".$GuamC;
		$UGuatemala="Guatemala".$GuatemalaC;
		$UGuinea="Guinea".$GuineaC;
		$UGuineaBissau="GuineaBissau".$GuineaBissauC;
		$UGuyana="Guyana".$GuyanaC;
		$UHaiti="Haiti".$HaitiC;
		$UHolySeeVaticanCityState="HolySeeVaticanCityState".$HolySeeVaticanCityStateC;
		$UHonduras="Honduras".$HondurasC;
		$UHongKong="HongKong".$HongKongC;
		$UHungary="Hungary".$HungaryC;
		$UIceland="Iceland".$IcelandC;
		$UIndonesia="Indonesia".$IndonesiaC;
		$UiNum="iNum".$iNumC;
		$UIranIslamicRepublicof="IranIslamicRepublicof".$IranIslamicRepublicofC;
		$UIraq="Iraq".$IraqC;
		$UIreland="Ireland".$IrelandC;
		$UIsrael="Israel".$IsraelC;
		$UItaly="Italy".$ItalyC;
		$UJamaica="Jamaica".$JamaicaC;
		$UJordan="Jordan".$JordanC;
		$UKazakhstan="Kazakhstan".$KazakhstanC;
		$UKenya ="Kenya".$KenyaC;
		$UKiribati="Kiribati".$KiribatiC;
		$UKoreaDemocraticPeoplesRepublicof="KoreaDemocraticPeoplesRepublicof".$KoreaDemocraticPeoplesRepublicofC;
		$UKoreaRepublicof="KoreaRepublicof".$KoreaRepublicofC;
		$UKuwait="Kuwait".$KuwaitC;
		$UKyrgyzstan="Kyrgyzstan".$KyrgyzstanC;
		$ULaoPeoplesDemocraticRepublic="LaoPeoplesDemocraticRepublic".$LaoPeoplesDemocraticRepublicC;
		$ULebanon="Lebanon".$LebanonC;
		$ULesotho="Lesotho".$LesothoC;
		$ULiberia="Liberia".$LiberiaC;
		$ULibyanArabJamahiriya="LibyanArabJamahiriya".$LibyanArabJamahiriyaC;
		$ULiechtenstein="Liechtenstein".$LiechtensteinC;
		$ULithuania="Lithuania".$LithuaniaC;
		$ULuxembourg="Luxembourg".$LuxembourgC;
		$UMacao="Macao".$MacaoC;
		$UMacedoniaTheFormerYugoslavRepublicOf="MacedoniaTheFormerYugoslavRepublicOf".$MacedoniaTheFormerYugoslavRepublicOfC;
		$UMadagascar="Madagascar".$MadagascarC;
		$UMalawi="Malawi".$MalawiC;
		$UMaldives="Maldives".$MaldivesC;
		$UMali="Mali".$MaliC;
		$UMalta="Malta".$MaltaC;
		$UMarshallIslands="MarshallIslands".$MarshallIslandsC;
		$UMartinique="Martinique".$MartiniqueC;
		$UMauritania="Mauritania".$MauritaniaC;
		$UMauritius="Mauritius".$MauritiusC;
		$UMayotte="Mayotte".$MayotteC;
		$UMexico="Mexico".$MexicoC;
		$UMicronesiaFederatedStatesof="MicronesiaFederatedStatesof".$MicronesiaFederatedStatesofC;
		$UMoldovaRepublicof="MoldovaRepublicof".$MoldovaRepublicofC;
		$UMonaco="Monaco".$MonacoC;
		$UMongolia="Mongolia".$MongoliaC;
		$UMontenegro="Montenegro".$MontenegroC;
		$UMontserrat="Montserrat".$MontserratC;
		$UMorocco ="Morocco".$MoroccoC;
		$UMozambique ="Mozambique".$MozambiqueC;
		$UMyanmar="Myanmar".$MyanmarC;
		$UNamibia="Namibia".$NamibiaC;
		$UNepal="Nepal".$NepalC;
		$UNetherlands="Netherlands".$NetherlandsC;
		$UNewCaledonia="NewCaledonia".$NewCaledoniaC;
		$UNewZealand="NewZealand".$NewZealandC;
		$UNicaragua="Nicaragua".$NicaraguaC;
		$UNiger="Niger".$NigerC;
		$UNigeria="Nigeria".$NigeriaC;
		$UNiue="Niue".$NiueC;
		$UNorthernMarianaIslands="NorthernMarianaIslands".$NorthernMarianaIslandsC;
		$UNorway="Norway".$NorwayC;
		$UOman="Oman".$OmanC;
		$UPakistan="Pakistan".$PakistanC;
		$UPalau="Palau".$PalauC;
		$UPalestinianTerritoryOccupied="PalestinianTerritoryOccupied".$PalestinianTerritoryOccupiedC;
		$UPanama="Panama".$PanamaC;
		$UPapuaGuinea="PapuaGuinea".$PapuaGuineaC;
		$UParaguay="Paraguay".$ParaguayC;
		$UPeru="Peru".$PeruC;
		$UPhilippinesC="Philippines".$PhilippinesC;
		$UPoland="Poland".$PolandC;
		$UPortugal="Portugal".$PortugalC;
		$UPuertoRico="PuertoRico".$PuertoRicoC;
		$UQatar="Qatar".$QatarC;
		$URomania="Romania".$RomaniaC;
		$URussianFederation="RussianFederation".$RussianFederationC;
		$URwanda="Rwanda".$RwandaC;
		$USaintHelena="SaintHelena".$SaintHelenaC;
		$USaintLucia="SaintLucia".$SaintLuciaC;
		$USaintPierreMiquelon="SaintPierreMiquelon".$SaintPierreMiquelonC;
		$USaintVincenttheGrenadines="SaintVincenttheGrenadines".$SaintVincenttheGrenadinesC;
		$USamoa="Samoa".$SamoaC;
		$USanMarino="SanMarino".$SanMarinoC;
		$USaoTomePrincipe="SaoTomePrincipe".$SaoTomePrincipeC;
		$USaudiArabia="SaudiArabia".$SaudiArabiaC;
		$USenegal="Senegal".$SenegalC;
		$USerbia="Serbia".$SerbiaC;
		$USeychelles="Seychelles".$SeychellesC;
		$USierraLeone="SierraLeone".$SierraLeoneC;
		$USlovakia="Slovakia".$SlovakiaC;
		$USlovenia="Slovenia".$SloveniaC;
		$USaoTomePrinTipe="SaoTomePrinTipe".$SaoTomePrinTipeC;
		$USolomonIslands="SolomonIslands".$SolomonIslandsC;
		$USomalia="Somalia".$SomaliaC;
		$USouthSudan="SouthSudan".$SouthSudanC;
		$USpain="Spain".$SpainC;
		$USriLanka="SriLanka".$SriLankaC;
		$USudan="Sudan".$SudanC;
		$USuriname="Suriname".$SurinameC;
		$USwaziland="Swaziland".$SwazilandC;
		$USyrianArabRepublic="SyrianArabRepublic".$SyrianArabRepublicC;
		$UTaiwan="Taiwan".$TaiwanC;
		$UTajikistan="Tajikistan".$TajikistanC;
		$UTanzaniaUnitedRepublicof="TanzaniaUnitedRepublicof".$TanzaniaUnitedRepublicofC;
		$UThailand="Thailand".$ThailandC;
		$UTimorLeste="TimorLeste".$TimorLesteC;
		$UTogo="Togo".$TogoC;
		$UTokelau="Tokelau".$TokelauC;
		$UTonga="Tonga".$TongaC;
		$UTrinidadTobago="TrinidadTobago".$TrinidadTobagoC;
		$UPalestiniancerritoryOccupied="PalestiniancerritoryOccupied".$PalestiniancerritoryOccupiedC;
		$UTunisia="Tunisia".$TunisiaC;
		$UTurkey="Turkey".$TurkeyC;
		$UTurkmenistan="Turkmenistan".$TurkmenistanC;
		$UTurksCaicosIslands="TurksCaicosIslands".$TurksCaicosIslandsC;
		$UTuvalu="Tuvalu".$TuvaluC;
		$UUganda="Uganda".$UgandaC;
		$UUkraine="Ukraine".$UkraineC;
		$UUnitedArabEmirates="UnitedArabEmirates".$UnitedArabEmiratesC;
		$UUnitedStates="UnitedStates".$UnitedStatesC;
		$UUruguay="Uruguay".$UruguayC;
		$UUzbekistan="Uzbekistan".$UzbekistanC;
		$UVanuatu="Vanuatu".$VanuatuC;
		$UVenezuela="Venezuela".$VenezuelaC;
		$UVietnam="Vietnam".$VietnamC;
		$UVirginIslandsBritish="VirginIslandsBritish".$VirginIslandsBritishC;
		$UVirginIslandsUS="VirginIslandsUS".$VirginIslandsUSC;
		$UWallisFutuna="WallisFutuna".$WallisFutunaC;
		$UYemen="Yemen".$YemenC;
		$UZambia="Zambia".$ZambiaC;
		$UZimbabwe="Zimbabwe".$ZimbabweC;	
	
	function my_sort($a,$b)
	{
	if ($a==$b) return 0;
	   return ($a>$b)?-1:1;
	}
	$UNicaragua='';
	$a=array();$b=array();
	$arr=array($Uindia=>$indiaT,$Umalaysia=>$malaysiaT,$UChina=>$ChinaT,$Ujapan=>$japanT,
		 $UsouthAfrica=>$southAfricaT,$Uuk=>$ukT,$Usingapore=>$singaporeT,
		 $UAfghanistan=>$AfghanistanT,$UAlbania=>$AlbaniaT,$UNetherlandsAntilles=>$NetherlandsAntillesT,	
		 $UAlgeria=>$AlgeriaT,$UAmericanSamoa=>$AmericanSamoaT,$UAndorra=>$AndorraT,$UAngola=>$AngolaT,
		 $UAnguilla=>$AnguillaT,$UAntarctica=>$AntarcticaT,$UAntiguaBarbuda=>$AntiguaBarbudaT,$UArgentina=>$ArgentinaT,
		 $UArmenia=>$ArmeniaT,$UAustralia=>$AustraliaT,$UAustria=>$AustriaT,$UAzerbaijan=>$AzerbaijanT,$UBahamas=>$BahamasT,
		 $UBahrain=>$BahrainT,$UBangladesh=>$BangladeshT,$UBarbadosc=>$BarbadoscT,$UBelarusc=>$BelaruscT,
		 $UBelgium=>$BelgiumT,$UBelize=>$BelizeT,$UBenin=>$BeninT,$UBermuda=>$BermudaT,$UBhutan=>$BhutanT,
		 $UBosniaHerzegovina=>$BosniaHerzegovinaT,$UBotswana=>$BotswanaT,
		 $UBrazil=>$BrazilT,$UBruneiDarussalam=>$BruneiDarussalamT,$UBulgaria=>$BulgariaT,$UBurkinaFaso=>$BurkinaFasoT,
		 $UBurundi=>$BurundiT,$UCambodia=>$CambodiaT,$UCameroon=>$CameroonT,$UCanada=>$CanadaT,$UCanada=>$CanadaT,
		 $UCapeVerde=>$CapeVerdeT,$UCaymanIslands=>$CaymanIslandsT,$UCentralAfricanRepublic=>$CentralAfricanRepublicT,
		 $UChad=>$ChadT,$UChile=>$ChileT,$UColombia=>$ColombiaT,$UComoros=>$ComorosT,$UCongo=>$CongoT,
		 $UCongotheDemocraticRepublic=>$CongotheDemocraticRepublicT,$UCookIslands=>$CookIslandsT,
		 $UCostaRica=>$CostaRicaT,$UCôtedIvoire=>$CôtedIvoireT,$UCroatia=>$CroatiaT,$UCuba=>$CubaT,$UCyprus=>$CyprusT,
		 $UCzechRepublic=>$CzechRepublicT,$UDenmark=>$DenmarkT,$UDjibouti=>$DjiboutiT,$UDominica=>$DominicaT,
		 $UDominicanRepublic=>$DominicanRepublicT,$UEcuador=>$EcuadorT,$UEgypt=>$EgyptT,$UElSalvador=>$ElSalvadorT,
		 $UEquatorialGuinea=>$EquatorialGuineaT,$UEritrea=>$EritreaT,$UEstonia=>$EstoniaT,$UEthiopia=>$EthiopiaT,
		 $UFalklandIslandsMalvinas=>$FalklandIslandsMalvinasT,$UFaroeIslands=>$FaroeIslandsT,$UFiji=>$FijiT,
		 $UFinland=>$FinlandT,$UFrance=>$FranceT,$UFrenchGuiana=>$FrenchGuianaT,$UFrenchPolynesia=>$FrenchPolynesiaT,
		 $UGabon=>$GabonT,$UGambia=>$GambiaT,$UGeorgia=>$GeorgiaT,$UGermany=>$GermanyT,$UGhana=>$GhanaT,$UGibraltar=>$GibraltarT,
		 $UGreece=>$GreeceT,$UGreenland=>$GreenlandT,$UGrenada=>$GrenadaT,$UGrenada=>$GrenadaT,$UGuadeloupe=>$GuadeloupeT,
		 $UGuam=>$GuamT,$UGuatemala=>$GuatemalaT,$UGuinea=>$GuineaT,$UGuineaBissau=>$GuineaBissauT,$UGuyana=>$GuyanaT,
		 $UHaiti=>$HaitiT,$UHolySeeVaticanCityState=>$HolySeeVaticanCityStateT,$UHonduras=>$HondurasT,$UHongKong=>$HongKongT,
		 $UHungary=>$HungaryT,$UIceland=>$IcelandT,$UIndonesia=>$IndonesiaT,$UiNum=>$iNumT,$UIranIslamicRepublicof=>$IranIslamicRepublicofT,
		 $UIraq=>$IraqT,$UIreland=>$IrelandT,$UIsrael=>$IsraelT,$UItaly=>$ItalyT,$UJamaica=>$JamaicaT,$UJordan=>$JordanT,
		 $UKazakhstan=>$KazakhstanT,$UKenya=>$KenyaT,$UKiribati=>$KiribatiT,$UKoreaDemocraticPeoplesRepublicof=>$KoreaDemocraticPeoplesRepublicofT,
		 $UKoreaRepublicof=>$KoreaRepublicofT,$UKuwait=>$KuwaitT,$UKyrgyzstan=>$KyrgyzstanT,$ULaoPeoplesDemocraticRepublic=>$LaoPeoplesDemocraticRepublicT,
		 $ULebanon=>$LebanonT,$ULesotho=>$LesothoT,$ULiberia=>$LiberiaT,$ULibyanArabJamahiriya=>$LibyanArabJamahiriyaT,
		 $ULiechtenstein=>$LiechtensteinT,$ULithuania=>$LithuaniaT,$ULuxembourg=>$LuxembourgT,$UMacao=>$MacaoT,
		 $UMacedoniaTheFormerYugoslavRepublicOf=>$MacedoniaTheFormerYugoslavRepublicOfT,$UMadagascar=>$MadagascarT,
		 $UMalawi=>$MalawiT,$UMaldives=>$MaldivesT,$UMali=>$MaliT,$UMalta=>$MaltaT,$UMarshallIslands=>$MarshallIslandsT,
		 $UMartinique=>$MartiniqueT,$UMauritania=>$MauritaniaT,$UMauritius=>$MauritiusT,$UMayotte=>$MayotteT,
		 $UMexico=>$MexicoT,$UMicronesiaFederatedStatesof=>$MicronesiaFederatedStatesofT,$UMoldovaRepublicof=>$MoldovaRepublicofT,
		 $UMonaco=>$MonacoT,$UMongolia=>$MongoliaT,$UMontenegro=>$MontenegroT,$UMontserrat=>$MontserratT,$UMorocco=>$MoroccoT,
		 $UMozambique=>$MozambiqueT,$UMyanmar=>$MyanmarT,$UNamibia=>$NamibiaT,$UNepal=>$NepalT,$UNetherlands=>$NetherlandsT,
		 $UNewCaledonia=>$NewCaledoniaT,$UNewZealand=>$NewZealandT,$UNicaragua=>$NicaraguaT,
		 $UNiger=>$NigerT,$UNigeria=>$NigeriaT,$UNiue=>$NiueT,$UNorthernMarianaIslands=>$NorthernMarianaIslandsT,
		 $UNorway=>$NorwayT,$UOman=>$OmanT,$UPakistan=>$PakistanT,$UPalau=>$PalauT,
		 $UPanama=>$PanamaT,$UPapuaGuinea=>$PapuaGuineaT,$UParaguay=>$ParaguayT,$UPeru=>$PeruT,$UPhilippinesC=>$PhilippinesT,
		 $UPoland=>$PolandT,$UPortugal=>$PortugalT,$UPuertoRico=>$PuertoRicoT,$UQatar=>$QatarT,$URomania=>$RomaniaT,
		 $URomania=>$RomaniaC,$URussianFederation=>$RussianFederationT,$URwanda=>$RwandaT,$USaintHelena=>$SaintHelenaT,
		 $USaintLucia=>$SaintLuciaT,$USaintPierreMiquelon=>$SaintPierreMiquelonT,$USaintVincenttheGrenadines=>$SaintVincenttheGrenadinesT,
		 $USamoa=>$SamoaT,$USanMarino=>$SanMarinoT,$USaoTomePrincipe=>$SaoTomePrincipeT,$USaudiArabia=>$SaudiArabiaT,
		 $USenegal=>$SenegalT,$USerbia=>$SerbiaT,$USerbia=>$SerbiaT,$USeychelles=>$SeychellesT,$USierraLeone=>$SierraLeoneT,
		 $USlovakia=>$SlovakiaT,$USlovenia=>$SloveniaT,$USaoTomePrinTipe=>$SaoTomePrinTipeT,$USolomonIslands=>$SolomonIslandsT,
		 $USomalia=>$SomaliaT,$USouthSudan=>$SouthSudanT,$USpain=>$SpainT,$USriLanka=>$SriLankaT,$USudan=>$SudanT,
		 $USuriname=>$SurinameT,$USwaziland=>$SwazilandT,$USyrianArabRepublic=>$SyrianArabRepublicT,$UTaiwan=>$TaiwanT,
		 $UTajikistan=>$TajikistanT,$UTanzaniaUnitedRepublicof=>$TanzaniaUnitedRepublicofT,$UThailand=>$ThailandT,
		 $UTimorLeste=>$TimorLesteT,$UTogo=>$TogoT,$UTokelau=>$TokelauT,$UTonga=>$TongaT,$UTrinidadTobago=>$TrinidadTobagoT,
		 $UPalestiniancerritoryOccupied=>$PalestiniancerritoryOccupiedT,$UTunisia=>$TunisiaT,
		 $UTurkey=>$TurkeyT,$UTurkmenistan=>$TurkmenistanT,$UTurksCaicosIslands=>$TurksCaicosIslandsT,$UTuvalu=>$TuvaluT,
		 $UUganda=>$UgandaT,$UUkraine=>$UkraineT,$UUnitedArabEmirates=>$UnitedArabEmiratesT,$UUruguay=>$UruguayT,
		 $UUzbekistan=>$UzbekistanT,$UVanuatu=>$VanuatuT,$UVenezuela=>$VenezuelaT,$UVietnam=>$VietnamT,
		 $UVirginIslandsBritish=>$VirginIslandsBritishT,$UVirginIslandsUS=>$VirginIslandsUST,$UWallisFutuna=>$WallisFutunaT,
		 $UYemen=>$YemenT,$UZambia=>$ZambiaT,$UZimbabwe=>$ZimbabweT,
		);
		uasort($arr,"my_sort");
	 
		foreach($arr as $x=>$x_value)
		{
			array_push($a,$x);
			array_push($b,$x_value);
		}
		$json='[{"type":"pie","name":"user calls","data":[';
		$dataCnt=0;
		for($i=0;$i<5;$i++){
			if($b[$i]!=''){
				$result = preg_split('/(?<=\d)(?=[a-z])|(?<=[a-z])(?=\d)/i', $a[$i]);
				$json=$json.'["'.$result[0].'",'.$b[$i].'],';
				$dataCnt++;
			}
		} 
		$json=$json.']}]';
}

		//daily difference
		$date_raw=date("Y-m-d");
		$first_date = strtotime($date_raw);
		$second_date = strtotime('+1 day', $first_date);

		$currentDate=date('Ymd', $first_date);
		$lastData=date('Ymd', $second_date);
		
		//one week difference
		$second_Wdate = strtotime('-7 day', $first_date);
		$currentWDate=date('Ymd', $first_date);
		$lastWData=date('Ymd', $second_Wdate);
		
		//one month differece
		$fromDate = date("Ymd", strtotime("-1 months"));
?>
<!DOCTYPE html>
<html>

<body>

<!--CONTENT SECTION START-->

<div id="main-wrapper-sec">

	<section>
		<!--INNER MAIN TITLE SECTION START-->

		<h2 class="inner-main-title pr-title">login</h2>
		
		<!--INNER MAIN TITLE SECTION END-->
		
		<!--CONTENT MAIN SECTION START-->
		
	  <div class="content-main-sec">
	  
		  <!--INNER CONTENT LEFT MENU SECTION START-->  
		  
		  <ul class="inner-left-menu-sec">
			<?php include('leftmenu.phtml');?>
		  </ul>
		  
		  <!--INNER CONTENT LEFT MENU SECTION END-->
		  
		  <!--INNER CONTENT RIGHT SECTION START-->
		  
		<article class="inner-cont-right-sec">
		  
			<h1 class="inner-cont-title">Usage Graph</h1>
	  
			<!--FILRER BY SECTION START-->
		  
				<ul class="acc-sd-sec">
				  <li>
				  <div class="fb-sec">
					  <a href="#" onclick="monthFun()" <?php if(isset($activedata)){if($activedata==3){?>class="active"<?php }} ?>>Monthly</a>
					  <a href="#" onclick="weekFun()" <?php if(isset($activedata)){if($activedata==2){?>class="active"<?php }} ?>>Weekly</a>
					  <a href="#" onclick="dateFun()" <?php if(isset($activedata)){if($activedata==1){?>class="active"<?php }} ?>>Daily</a>
				   </div>
				  </li>
				</ul>
		  
			<!--FILRER BY SECTION END-->
	  
			<div class="clear"></div>
	  
			<!--USAGE GRAPH CONTENT MAIN SECTION START-->
	  
			<article class="ug-main-cont-sec">
		  
			  <!--USAGE STATITICS SECTION START-->
					  <div style="width:340px;float:left;">
					  <?php if($dataCnt>0){ ?>
						<h6 ><div id="container" ></div></h6>
						<?php }else{ ?>
						<br /><h4>No Graph...</h4>
						<?php } ?>
					  </div>
					  
					  <!--USAGE STATITICS SECTION END-->
					  
					  <!--TOP DESTINAION SECTION START-->
					  
				<aside class="lc-sec">
				<h6 class="inner-sub-title"><img src="<?php echo $this->basePath(); ?>/images/flag.png" alt="" style="margin-top:3px;"> <span class="blue">Top Destinations</span></h6>
				<div class="cd-sf-sec">
					  
					<table width="100%" cellpadding="0" cellspacing="0" border="0">
					  <tr class="title">
					  <td width="34%" align="left" valign="middle">Destination</td>
					  <td width="31%" align="center" valign="middle" class="td-price">Price</td>
					  <td width="35%" align="left" valign="middle">Minutes</td>
					  </tr>
					  <?php   if($dataCnt>0){ 
						for($i=0;$i<5;$i++){
						if($b[$i]){
						$result = preg_split('/(?<=\d)(?=[a-z])|(?<=[a-z])(?=\d)/i', $a[$i]);
					  ?>
					  <tr>
					  <td align="left" valign="middle"><?php echo $result[0]; ?></td>
					  <td align="center" valign="middle" class="td-price">$<?php echo $result[1]; ?></td>
					  <td align="left" valign="middle"><?php $a=gmdate("H:i:s", $b[$i]); echo $a; ?>sec</td>
					  </tr>
					  <?php } } }else{ ?>
					  <tr>
						<td align="middle" valign="middle" colspan="3" >No data..</td>
					  </tr>
					  <?php } ?>
					</table>
				</div>
				</aside>
			  
			  <!--TOP DESTINAION SECTION END-->
			</article>
		  
		<!--USAGE GRAPH CONTENT MAIN SECTION END-->
		</article>
	  
	  <!--INNER CONTENT RIGHT SECTION END-->
	  
	  </div>
	  
	  <!--CONTENT MAIN SECTION END-->
	  
	  <div class="clear"></div>
	  
	  <!--CLIENTS AREA SECTION START-->
	  
	  <aside class="content-main-sec ot-lg-sec"> <img src="<?php echo $this->basePath(); ?>/images/truste.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/secured.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/mcafeev.jpg" alt="">
		<h3 class="otg-title">Trusted. Safe. Reliable.</h3>
	  </aside>
	  
	  <!--CLIENTS AREA SECTION END-->
	  
	  <div class="clear"></div>
	  
	</section>
	<form id="dateId" method="POST" >
		<input type="hidden" id="Fdate" name="Fdate" value="<?php echo $lastData; ?>">
		<input type="hidden" id="Ldate" name="Ldate" value="<?php echo $currentDate; ?>">
		<input type="hidden" id="date_1" name="date_1" value="1">
		
	</form>
	<div class="clear"></div>
	<form id="weekId" method="POST" >
		<input type="hidden" id="Fdate" name="Fdate" value="<?php echo $currentWDate; ?>">
		<input type="hidden" id="Ldate" name="Ldate" value="<?php echo $lastWData; ?>">
		<input type="hidden" id="date_1" name="date_1" value="2">
	</form>
	<div class="clear"></div>
	<form id="monthId" method="POST" >
		<input type="hidden" id="Fdate" name="Fdate" value="<?php echo $currentDate; ?>">
		<input type="hidden" id="Ldate" name="Ldate" value="<?php echo $fromDate; ?> ">
		<input type="hidden" id="date_1" name="date_1" value="3">
	</form>
</div>

<!--CONTENT SECTION END--> 

</body>
</html>
<script>
<?php
if($dataCnt>0) {
?>
$(function(){
    $('#container').highcharts({
					chart: {
						plotBackgroundColor: null,
						plotBorderWidth: null,
						plotShadow:false,
						width: 250,
						height: 250
					},
						title: {
							text: '<div style="margin:0px;padding:0px">Usage Chart</div>'
						},
						tooltip:{
							pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
						},
						plotOptions:{
							pie: {
								allowPointSelect: true,
								cursor: 'pointer',
								dataLabels:{
									enabled: true,
									color: '#000000',
									connectorColor: '#000000',
									format: '<b>{point.name}</b>: {point.percentage:.1f} %'
								}
							}
						},
					   series: <?php  echo $json;?>
			});
    });
<?php
}
?>
</script>
<script>
function dateFun(){
		$("#dateId").submit();
}
function weekFun(){
		$("#weekId").submit();
}	  
function monthFun(){
	$("#monthId").submit();
}
</script>